#ifndef _LO_SCRIPT_MOVE_RANDOM_H_
#define _LO_SCRIPT_MOVE_RANDOM_H_

#include "edaMoveGen.h"
#include "loDefine.h"
#include "rng.h"

class loScriptMoveRandom: public edaMoveGen {
public:
  loScriptMoveRandom();
  loScriptMoveRandom( int from, int to );
  // Copy constructor
  loScriptMoveRandom( const loScriptMoveRandom &m );

  virtual ~loScriptMoveRandom();
  edaMoveGen *clone() const;

  virtual bool generate( edaMove *move, const edaSolution &sol );

  setClassID(_USERCLASSID_ + _CLSID_SCRIPT_MOVE_RANDOM_);
  void Serialize(edaBuffer &buf, bool pack);

 private:
  RNG rng;
  int from_, to_;
};

#endif
